package com.matt.repository.observation;

import com.matt.domain.observation.ObservationNew;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/8/14
 * *******************************
 */
public interface ObservationNewRepository extends JpaRepository<ObservationNew, String>{
    List<ObservationNew> findByCoursePlanIdAndCategory(String coursePlanId, Integer category);

    List<ObservationNew> findByCoursePlanId(String coursePlanId);

    List<ObservationNew> findByCategoryAndCourseTypeOrderByTypeCode(Integer category, Integer courseType);


}
